<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="/struts-tags"  prefix="s"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'sys_log_show.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<link rel="stylesheet" type="text/css"
			href="./styles/control_panel.css" />
	<script type="text/javascript">
		function callBack(){
			window.history.back();
		}
	</script>
	<script type="text/javascript">
		function logData(){
			var flag = confirm("您确定要恢复该工作日志嘛?");
			if(flag){
				return true;
			}else{
				return false;
			}
		}
	</script>
  </head>
  
  <body>
    <div style="margin-bottom: 4px; margin-left: 12px;" align="center">
		<div
			style="border: 1px solid #cccccc; height: auto !important; height: 100px; min-height: 100px;">
			<div class="control_con_right_0021">
				<table width="100%" cellpadding="0" cellspacing="0" border="0">
					<tr>
						<td align="left" class="tb_left" valign="middle" colspan="3"
							style="padding-left: 10px;">
							详细工作日志
						</td>
					</tr>
				</table>
			</div>
    <form action="bbs/log/log_regainLog.action" method="post" onsubmit="if(!logData()){return false;}">
    <table cellpadding="0" cellspacing="0"   >
    	<tr height="35px">
    		<td align="center" >操作内容：&nbsp;&nbsp;</td>
    		<td>
    			<s:property value="%{sysLog.operation}"/>
    			<input type="hidden" name="sysLog.id" value="<s:property value="%{sysLog.id}"/>"/>
    			<input type="hidden" name="sysLog.operation" value="<s:property value="%{sysLog.operation}"/>"/>
    			<input type="hidden" name="sysLog.operationer" value="<s:property value="%{sysLog.operationer}"/>"/>
    			<input type="hidden" name="sysLog.opTime" value="<s:property value="%{sysLog.opTime}"/>"/>
    			<input type="hidden" name="sysLog.remark" value="<s:property value="%{sysLog.remark}"/>"/>
    			<input type="hidden" name="sysLog.logFlag" value="<s:property value="%{sysLog.logFlag}"/>"/>
    		</td>
    	</tr>
    	<tr height="35px">
    		<td align="center" >操作人：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
    		<td>
    			<s:property value="%{sysLog.operationer}"/>
    		</td>
    	</tr>
    	<tr height="35px">
    		<td align="center" >操作时间：&nbsp;&nbsp;</td>
    		<td>
    			<s:property value="%{sysLog.opTime}"/>
    		</td>
    	</tr>
    	<tr height="35px">
    		<td align="center" >状态：&nbsp;&nbsp;</td>
    		<td>
    			<s:if test="sysLog.logFlag==0"><font color="green">新</font> </s:if>
				<s:if test="sysLog.logFlag==1"><font color="red">已恢复</font> </s:if>
				<s:if test="logFlag==3"><font color="black">旧</font> </s:if>
    		</td>
    	</tr>
    	<tr height="40px">
    		<td align="center">
    			<s:if test="sysLog.logFlag==0">
    			<input type="submit" value="恢复" />
    			</s:if>
    		</td>
    		<td >
    			<input type="button" value="返回" onclick="callBack();"/>
    		</td>
    	</tr>
    </table>
    </form>
    </div>
    </div>
  </body>
</html>
